package it.davial.mgwt.client;


import java.io.Serializable;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="PATIENT")
public class Patient   implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4445190930673285251L;

	@Id
	@Column(name="ID_PATIENT")
	private int idPatient;
	
	@Column(name="NAME")
	private String name;

	@Column(name="SURNAME")
	private String surname;
	
	@Column(name="DATA_BIRTH")
	private String dataBirth;
	
	@Column(name="ADDRESS_STREET")
	private String addressStreet;
	
	@Column(name="ADDRESS_NUMBER")
	private String addressNumber;
	
	@Column(name="ADDRESS_CODE")
	private String addressCode;
	
	@Column(name="ADDRESS_PROVINCE")
	private String addressProvince;
	
	@Column(name="ADDRESS_CITY")
	private String addressCity;
	
	@Column(name="PHONE")
	private String phone;
	
	@Column(name="CELLULAR")
	private String cellular;
	
	@Column(name="CODE_FUNCTION")
	private int codeFunction;
	
	@Column(name="DATA_INS")
	private String dataInsert;
	
	@Column(name="CODE_USER_INS")
	private String codeUserInsert;

	@Column(name="DATA_UPD")
	private String dataUpdate;

	@Column(name="CODE_USER_UPD")
	private String codeUserUpdate;

	@Column(name="STATE")
	private int state;
	
	public int getCodeFunction() {
		return codeFunction;
	}

	public void setCodeFunction(int codeFunction) {
		this.codeFunction = codeFunction;
	}

	public String getDataInsert() {
		return dataInsert;
	}

	public void setDataInsert(String dataInsert)  {
		this.dataInsert = dataInsert;
	}

	public String getCodeUserInsert() {
		return codeUserInsert;
	}

	public void setCodeUserInsert(String codeUserInsert) {
		this.codeUserInsert = codeUserInsert;
	}

	public String getDataUpdate() {
		return dataUpdate;
	}

	public void setDataUpdate(String dataUpdate) {
		this.dataUpdate = dataUpdate;
	}

	public String getCodeUserUpdate() {
		return codeUserUpdate;
	}

	public void setCodeUserUpdate(String codeUserUpdate) {
		this.codeUserUpdate = codeUserUpdate;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getIdPatient() {
		return idPatient;
	}

	public void setIdPatient(int idPatient) {
		this.idPatient = idPatient;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	
	public String getDataBirth() {
		return dataBirth;
	}
	
	public void setDataBirth(String dataBirth)  {
		this.dataBirth = dataBirth;
	}

	public String getAddressStreet() {
		return addressStreet;
	}

	public void setAddressStreet(String addressStreet) {
		this.addressStreet = addressStreet;
	}

	public String getAddressNumber() {
		return addressNumber;
	}

	public void setAddressNumber(String addressNumber) {
		this.addressNumber = addressNumber;
	}

	public String getAddressCode() {
		return addressCode;
	}

	public void setAddressCode(String addressCode) {
		this.addressCode = addressCode;
	}

	public String getAddressProvince() {
		return addressProvince;
	}

	public void setAddressProvince(String addressProvince) {
		this.addressProvince = addressProvince;
	}

	public String getAddressCity() {
		return addressCity;
	}

	public void setAddressCity(String addressCity) {
		this.addressCity = addressCity;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCellular() {
		return cellular;
	}

	public void setCellular(String cellular) {
		this.cellular = cellular;
	}

	@Override
	public String toString() {
		return "Patient [idPatient=" + idPatient + ", name=" + name
				+ ", surname=" + surname + ", dataBirth=" + dataBirth
				+ ", addressStreet=" + addressStreet + ", addressNumber="
				+ addressNumber + ", addressCode=" + addressCode
				+ ", addressProvince=" + addressProvince + ", addressCity="
				+ addressCity + ", phone=" + phone + ", cellular=" + cellular
				+ ", codeFunction=" + codeFunction + ", dataInsert="
				+ dataInsert + ", codeUserInsert=" + codeUserInsert
				+ ", dataUpdate=" + dataUpdate + ", codeUserUpdate="
				+ codeUserUpdate + ", state=" + state + "]";
	}

	

	
}
